xml.instruct! :xml, :version => "1.0"
xml.mappings do
  xml.fragment_id @fragment.id
  xml.fragment_name @fragment.name

  xml.concepts do
    for concept in @fragment.concepts.mapped
      xml.concept do
        xml.local_key concept.local_key
        xml.mappings do
          for mapping in concept.mappings
            xml.concept do
              xml.fragment_id mapping.fragment_id
              xml.local_key mapping.local_key
            end
          end
        end
      end
    end
  end
end